﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2004A.Shopping.Domain
{
    /// <summary>
    /// 规格
    /// </summary>
    [Table("tb_specs")]
    public class SpecsModel : AuditKey<int>
    {
        public string Name { get; set; }
        public string? Remark { get; set; }
    }

    /// <summary>
    /// 分类规格
    /// </summary>
    [Table("tb_category_specs")]
    public class CategorySpecsModel : AuditKey<int>
    {
        public int CategoryId { get; set; }
        public int SpecsId { get; set; }
        public string? SpecsName { get; set; } //自定义分类规格的名称
    }


    /// <summary>
    /// 分类规格值
    /// </summary>
    [Table("tb_category_specs_value")]
    public class CategorySpecsValueModel:AuditKey<int>
    {
        public int CategorySpecsId { get; set; }
        public string Value { get; set; }
    }


}
